package com.java.demo.component;

import com.java.demo.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Controller;

@Controller
@Order(1)
public class UserBean2 {
    @Bean
    public User getUserByName(){
        User user = new User();
        user.setUid(1);
        user.setUsername("wangwu");
        user.setPassword("123");
        return user;
    }
}
